package com.imooc.pan.server.modules.file.po;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class FileUploadPO implements Serializable {
    @NotBlank(message = "文件名称不能为空")
    private String filename;
    @NotBlank(message = "文件唯一标识不能为空")
    private String identifier;
    @NotNull(message ="文件的总大小不能为空")
    private Long totalSize;
    @NotBlank(message = "文件的父文件夹ID不能为空")
    private String parentId;
    @NotNull(message = "文件实体不能为空")
    private MultipartFile file;
}
